{if $have_errors}{include file="error.tpl"}{/if} 

<div class="message_box" style="width: 800px; display: block;">
  <div style="position: relative;">
    <ol class="present_list">
    {if $smarty.const.CAN_EDIT}
        <li id="new"><p class="present_head"><cite>{$lang.new_present}</cite></p></li>
    {/if}
    {if $presents_list} 
    {foreach from=$presents_list item=present key=key}
        <li id="{$present.idpresents}"><p class="present_head" {if $present.amount_left <= 0}style="color: #C0C0C0"{/if} {if $present.ev_name}title="{$present.ev_name}"{/if}><cite>{$present.short_name}</cite><label class="set_right" title="{$present.ev_name}">{$present.ev_date}</label></p></li> 
{*        <li id="{$present.idpresents}"><table cellpadding="0" cellspacing="0"><tr><td class="pr_name"><cite>{$present.name}</cite></td>{if $present.ev_date}<td class="pr_date"><a href="index.php" title="{$present.ev_name}">{$present.ev_date}</a></td>{/if}</tr></table></li> *}
    {/foreach}
    {/if}
    </ol>


    
    <div class="present_desc">
    {include file="present_detailed.tpl"}
    </div>
    
    
    <div>
    
    </div>

    {if $present_id}
    <script type="text/javascript">
        show_present("#{$present_id}");   
    </script>
    {/if}
  </div>  
</div>